import { axios, get, post } from "./request"


export const ajax = {

    register: params => post("/add/admins", params), //注册提交用户信息

    login: params => post("/find/admin", params), //登录提交管理员

    login2: params => post("/find/jiaowus", params), //登录提交教务

    login3: params => post("/find/jiaoshis", params), //登录提交教师

    login4: params => post("/find/xuesheng", params), //登录提交学生

    getusernfo: params => post("/find/userInfo", params), //登录提交用户信息

    addJaowu: params => post("/add/jiaowus", params), //添加教务账号

    addJaoshi: params => post("/add/jiaoshis", params), //添加教师账号

    getList: params => post("/find/roleAll", params), //查询用户列表

     addStudent: params => post("/add/students", params),
      //添加学生

      findStudent: params => post("/find/roleAll", params),
      // 查询学生列表
}